﻿using CommonFramework.Log;
using CommonFramework.Time;
using Net.Server;

namespace CommonFramework
{
    public static class FrameworkApplication
    {
        public static bool RunAsServer;

        public static void OnAwake()
        {
            //日志服务
            LogUtil.SetLogSeverityEnabled(LogSeverity.Verbose, false);
            LogUtil.SetHandlerActive<ConsoleLogMessageHandler>();
        }

        public static void OnStart()
        {
            TimeUtil.OnStart();
        }

        public static void OnUpdate()
        {
            TimeUtil.OnUpdate();
        }

        public static void OnPause()
        {
        }

        public static void OnQuit()
        {
        }
    }
}